/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package projetosustentabilidade;


public class PrincipleComponent implements Comparable<PrincipleComponent> {

        double eigenValue;
        double[] eigenVector;

        public PrincipleComponent(double eigenValue, double[] eigenVector) {
            this.eigenValue = eigenValue;
            this.eigenVector = eigenVector;
        }

        public int compareTo(PrincipleComponent o) {
            int ret = 0;
            if (eigenValue > o.eigenValue) {
                ret = -1;
            } else if (eigenValue < o.eigenValue) {
                ret = 1;
            }
            return ret;
        }
    }
